package sy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.ZhihuMapper;
import sy.model.Zhihu;

@Service("zhihuService")
public class ZhihuServiceImpl implements IZhihuService{

	private ZhihuMapper zhihuMapper;
	
	public ZhihuMapper getZhihuMapper() {
		return zhihuMapper;
	}

	@Autowired
	public void setZhihuMapper(ZhihuMapper zhihuMapper) {
		this.zhihuMapper = zhihuMapper;
	}

	@Override
	public Zhihu queryZhihuById(String id) {
		// TODO Auto-generated method stub
		return zhihuMapper.selectByPrimaryKey(id);
	}
	
	

}
